import { Swiper } from "antd-mobile";
import "./index.less";

export const UserList = ({ data }) => {
  return (
    <div className="user-list">
      <Swiper
        loop
        autoplay
        allowTouchMove={false}
        autoplayInterval={2000}
        direction={"vertical"}
        indicator={false}
      >
        {data.map((item, index) => (
          <Swiper.Item key={index}>
            <i></i>
            {item.name}
            <span>（尾号{item.number}）</span>已加入保障
          </Swiper.Item>
        ))}
      </Swiper>
    </div>
  );
};
